package com.ericsson.enap.modules.monitor.service;

import com.ericsson.enap.modules.topology.entity.CabSwitch;
import com.ericsson.enap.modules.monitor.entity.SwitchInterfaceStatus;
import com.ericsson.enap.modules.monitor.entity.SwitchPortData;
import com.ericsson.enap.modules.monitor.entity.SwitchTotalData;

import java.util.List;
import java.util.Map;

/**
 *Switch数据，数据库操作
 */
public interface SwitchDBDataService {
    /**
     * 获得交换机列表
     * @return
     */
    List<CabSwitch> getSwitchList();

    /**
     * 获取字典中交换机端口状态
     * @return
     */
    Map<String, String> getSysDictData();

    void insertSwitchTotalList(List<SwitchTotalData> switchTotalDataList);

    void insertSwitchPortDataList(List<SwitchPortData> switchPortDataList,String programDate);

    void insertSwitchInterStatus(List<SwitchInterfaceStatus> switchInterfaceStatusList);

    Map<String,SwitchPortData> getBeforeMinuteData(String beforeData);
}
